/* ===== ANIMAL TYPES LEARNING TOOL - KIDS CENTRIC DESIGN ===== */

/* ===== MODAL & CONTAINER ===== */
.seven-animal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg);
  background-size: 400% 400%;
  animation: sevenGradientShift 15s ease infinite;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

.seven-animal-modal.active {
  display: flex;
}

@keyframes sevenGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.seven-animal-container {
  background: var(--secondary-bg);
  border-radius: 40px;
  padding: 40px;
  max-width: 1400px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  background-clip: padding-box;
}

@keyframes sevenSlideUp {
  from {
    transform: translateY(100px) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ===== CLOSE BUTTON ===== */
.seven-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-bg);
  color: #1e1e1e;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
  transition: all 0.3s ease;
  font-weight: bold;
  z-index: 10;
}

.seven-close-btn:hover {
  transform: translateY(-3px);
}

/* ===== HEADER ===== */
.seven-header {
  text-align: center;
  margin-bottom: 30px;
  animation: sevenBounceIn 0.8s ease-out;
  margin-top: 50px;
}

@keyframes sevenBounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.seven-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(
    135deg,
    var(--primary-bg) 0%,
    #ff8c00 25%,
    #ffd700 50%,
    #00d9ff 75%,
    #9933ff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: 2px;
  animation: sevenRainbowText 5s linear infinite;
  background-size: 200% 200%;
}

@keyframes sevenRainbowText {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.seven-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #7b68ee;
  font-weight: 700;
}

/* ===== SCORE BAR ===== */
.seven-score-bar {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.seven-score-item {
  background: white;
  border-radius: 25px;
  padding: 18px 35px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 4px solid var(--primary-bg);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 150px;
}

.seven-score-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(255, 182, 217, 0.3);
}

.seven-score-item.seven-total {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  border-color: #ff8c00;
}

.seven-score-label {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #666;
  font-weight: 800;
  text-transform: uppercase;
}

.seven-score-value {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--primary-bg);
  font-weight: 900;
}

.seven-total .seven-score-label,
.seven-total .seven-score-value {
  color: white;
}

/* ===== NAVIGATION TABS ===== */
.seven-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.seven-tab-btn {
  background: linear-gradient(135deg, #e8f5ff 0%, #f0e8ff 100%);
  color: #555;
  border: 3px solid #d0d0d0;
  padding: 15px 25px;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.seven-tab-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(123, 104, 238, 0.3);
}

.seven-tab-btn.active {
  background: var(--primary-bg);
  color: #1e1e1e;
  border: none;
  box-shadow: none;
}

/* ===== CONTENT SECTIONS ===== */
.seven-content-section {
  display: none;
  animation: sevenFadeSlide 0.5s ease-out;
}

.seven-content-section.active {
  display: block;
}

@keyframes sevenFadeSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.seven-learn-card {
  background: white;
  border-radius: 35px;
  padding: var(--fs-10-16);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border: 5px solid var(--primary-bg);
}

.seven-section-header {
  text-align: center;
  margin-bottom: 30px;
}

.seven-section-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  background: linear-gradient(
    135deg,
    var(--primary-bg) 0%,
    #ff8c00 50%,
    #ffd700 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-bottom: 10px;
}

.seven-section-subtitle {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  color: #7b68ee;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ===== INTRODUCTION SECTION ===== */
.seven-intro-content {
  max-width: 1000px;
  margin: 0 auto;
}

.seven-intro-text {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: #2d3436;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: center;
}

.seven-examples-section {
  background: linear-gradient(135deg, #fff9e6 0%, #ffefba 100%);
  border-radius: 25px;
  padding: 30px;
  margin: 30px 0;
  border: 4px solid #ffd700;
}

.seven-section-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--primary-bg);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 800;
}

.seven-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.seven-example-box {
  background: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: #2d3436;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--primary-bg);
  transition: all 0.3s ease;
}

.seven-example-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

.seven-funfacts-section {
  background: linear-gradient(135deg, #e8f5ff 0%, #f0e8ff 100%);
  border-radius: 25px;
  padding: var(--fs-10-16);
  margin: 30px 0;
  border: 4px solid #00d9ff;
}

.seven-funfact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 20px 0;
  padding: 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.seven-funfact-number {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #ff8c00 100%);
  color: white;
  width: var(--fs-20-42);
  height: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

.seven-funfact-item p {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: #2d3436;
  line-height: 1.6;
  margin: 0;
}

/* ===== TYPES SECTION ===== */
.seven-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.seven-type-card {
  border-radius: 25px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 4px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.seven-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.seven-type-name {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #2d3436;
  margin-bottom: 15px;
  font-weight: 900;
}

.seven-type-desc {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ===== CATEGORIES GRID ===== */
.seven-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.seven-category-card {
  border-radius: 25px;
  padding: 35px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 5px solid rgba(255, 255, 255, 0.5);
  position: relative;
}

.seven-category-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.seven-category-name {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #2d3436;
  margin: 0;
  font-weight: 900;
}

.seven-category-check {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #4caf50;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: bold;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.seven-category-check.active {
  opacity: 1;
  transform: scale(1);
}

/* ===== CATEGORY CONTENT ===== */
.seven-back-btn {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.seven-back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.seven-category-content {
  max-width: 900px;
  margin: 0 auto;
}

.seven-definition-box,
.seven-characteristics-box,
.seven-examples-box,
.seven-funfact-box {
  background: linear-gradient(135deg, #fff9e6 0%, #ffefba 100%);
  border-radius: 25px;
  padding: var(--fs-16-32);
  margin: 25px 0;
  border: 4px solid #ffd700;
}

.seven-content-subtitle {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--primary-bg);
  margin-bottom: 20px;
  font-weight: 800;
}

.seven-definition-text {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: #2d3436;
  line-height: 1.7;
  margin: 0;
}

.seven-characteristics-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seven-characteristics-list li {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: #2d3436;
  line-height: 1.7;
  margin: 15px 0;
  padding-left: 30px;
  position: relative;
}

.seven-characteristics-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 15px;
  height: 15px;
  background: var(--primary-bg);
  border-radius: 50%;
}

.seven-examples-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.seven-example-item {
  background: white;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--primary-bg);
  transition: all 0.3s ease;
}

.seven-example-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

.seven-example-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-bg);
  margin-bottom: 10px;
  font-weight: 800;
}

.seven-example-desc {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #636e72;
  margin: 0;
  line-height: 1.5;
}

.seven-funfact-text {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: #2d3436;
  line-height: 1.7;
  margin: 0;
}

/* ===== QUIZ SECTION ===== */
.seven-quiz-progress {
  margin-bottom: 30px;
}

.seven-progress-bar {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  height: 25px;
  overflow: hidden;
}

.seven-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
  border-radius: 20px;
  transition: width 0.5s ease;
}

.seven-quiz-area {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
  border-radius: 25px;
  padding: var(--fs-12-20);
  text-align: center;
}

.seven-quiz-question {
  margin-bottom: 40px;
}

.seven-question-text {
  font-size: var(--fs-16-32);
  color: var(--primary-bg);
  font-weight: 800;
  line-height: 1.4;
}

.seven-quiz-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.seven-quiz-option {
  cursor: pointer;
  transition: all 0.3s ease;
}

.seven-quiz-option:hover {
  transform: translateY(-8px) scale(1.05);
}

.seven-option-content {
  background: white;
  border-radius: 25px;
  padding: 1em;
  min-width: 180px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 5px solid #e0e0e0;
  transition: all 0.3s ease;
}

.seven-quiz-option:hover .seven-option-content {
  border-color: #4ecdc4;
}

.seven-option-text {
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  font-weight: 800;
  color: #2d3436;
}

.seven-quiz-option.seven-correct-answer .seven-option-content {
  border-color: #4caf50;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  animation: sevenCorrectPulse 0.6s;
}

@keyframes sevenCorrectPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.seven-quiz-option.seven-wrong-answer .seven-option-content {
  animation: sevenWrongShake 0.5s;
}

@keyframes sevenWrongShake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-15px);
  }

  75% {
    transform: translateX(15px);
  }
}

.seven-quiz-feedback {
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.seven-feedback-correct,
.seven-feedback-wrong {
  display: inline-block;
  padding: 20px 40px;
  border-radius: 25px;
  animation: sevenFeedbackPop 0.5s;
}

@keyframes sevenFeedbackPop {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.seven-feedback-correct {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 4px solid #4caf50;
}

.seven-feedback-wrong {
  background: linear-gradient(135deg, #fff9e6 0%, #ffefba 100%);
  border: 4px solid #ffd700;
}

.seven-feedback-text {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #2e7d32;
  margin: 0;
}

.seven-feedback-wrong .seven-feedback-text {
  color: #ff8c00;
}

/* ===== COMPLETE BUTTON ===== */
.seven-complete-btn {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #16a085 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.seven-complete-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* ===== CONFETTI ===== */
.seven-confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10002;
  display: none;
}

.seven-confetti-container.active {
  display: block;
}

.seven-confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  animation: sevenConfettiFall 3s linear forwards;
  border-radius: 50%;
}

@keyframes sevenConfettiFall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
.seven-animal-container::-webkit-scrollbar {
  width: 12px;
}

.seven-animal-container::-webkit-scrollbar-track {
  background: linear-gradient(
    135deg,
    rgba(255, 182, 217, 0.3),
    rgba(168, 230, 207, 0.3)
  );
  border-radius: 10px;
}

.seven-animal-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #ff69b4 100%);
  border-radius: 10px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .seven-animal-container {
    padding: 30px;
  }

  .seven-nav-tabs {
    flex-direction: column;
  }

  .seven-tab-btn {
    width: 100%;
  }

  .seven-quiz-options {
    flex-direction: column;
    align-items: center;
  }

  .seven-examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .seven-types-grid,
  .seven-categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .seven-animal-container {
    padding: 20px;
    border-radius: 30px;
  }

  .seven-examples-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
